<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- 视口标签 -->
<meta name="viewport"
	content="width=device-width, initial-scale=1, user-scalable=no" />
<!-- 删除苹果默认的工具栏和菜单栏 -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- 设置苹果工具栏颜色 -->
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<!-- 忽略页面中的数字识别为电话，忽略email识别 -->
<meta name="format-detection" content="telphone=no, email=no" />
<!-- 启用360浏览器的极速模式(webkit) -->
<meta name="renderer" content="webkit">
<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
<meta name="HandheldFriendly" content="true">
<!-- 微软的老式浏览器 -->
<meta name="MobileOptimized" content="320">
<!-- uc强制竖屏 -->
<meta name="screen-orientation" content="portrait">
<!-- QQ强制竖屏 -->
<meta name="x5-orientation" content="portrait">
<!-- UC应用模式 -->
<meta name="browsermode" content="application">
<!-- QQ应用模式 -->
<meta name="x5-page-mode" content="app">
<!-- windows phone 点击无高光 -->
<meta name="msapplication-tap-highlight" content="no">
<!-- 适应移动端end -->
<link rel="stylesheet" type="text/css"
	href="${path }/resource/css/base.css" />
<link rel="stylesheet" type="text/css"
	href="${path }/resource/css/index.css" />
<script type="text/javascript"
	src="${path }/resource/js/plugin/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/plugin/TouchSlide.1.1.js"></script>
<title>商品详情</title>
<style type="text/css">
.bd .img_li {
	width: 100%;
	height: 100vw;
	position: relative;
	background-color: #F7F7F7;
}

.bd .img_li>img {
	max-width: 100%;
	max-height: 100%;
	position: absolute;
	background-color: #f7f7f7;
	top: 50%;
	left: 50%;
	-webkit-transform: translate3d(-50%, -50%, 0);
	transform: translate3d(-50%, -50%, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-perspective: 1000;
	perspective: 1000;
}
</style>
</head>
<body>
	<div class="wrap">
		<div id="focus" class="focus">
			<div class="hd">
				<ul></ul>
			</div>
			<div class="bd">
				<ul>
				<c:forEach items="${good.goodImgList}" var="img">
					<c:if test="${img.imgType eq '1'}">
					<li class="img_li"><img  src="${img.imgUrl}" /></li>
					</c:if>
				</c:forEach>
				</ul>
			</div>
		</div>
		<section class="white_bg">
			<p class="pro_title">${good.proProvince}&nbsp;${good.proStyle}${good.proName}&nbsp;${good.proModel}</p>
			<span class="color_o"><b>&yen;</b>&nbsp;${good.proPrice}</span>
		</section>
		<section class="good_infor">
			<p class="detail_title">商品信息</p>
			<ul>
				<li class="row"><span class="col-25">【${good.proName}】</span><span>${good.proDescription}</span></li>
<%-- 				<li class="row"><span class="col-25">品牌</span><span>${good.proBrand}</span></li> --%>
<%-- 				<li class="row"><span class="col-25">风格</span><span>${good.proStyle}</span></li> --%>
<%-- 				<li class="row"><span class="col-25">材质</span><span>${good.proMaterial}</span></li> --%>
				<li class="row"><span class="col-25">【规格说明】</span><span>${good.proSize}</span></li>
			</ul>
		</section>
		<section>
<!-- 			<img src="http://git.oschina.net/uploads/37/935037_maoluguang.png?1488335936" width="100%" alt="" /> -->
			<c:forEach items="${good.goodImgList}" var="img">
				<c:if test="${img.imgType eq '2'}">
				<img src="${img.imgUrl}" width="100%" alt="" />
				</c:if>
			</c:forEach>
		</section>
	</div>
	<script type="text/javascript">
		TouchSlide({
			slideCell : "#focus",
			titCell : ".hd ul", //开启自动分页 autoPage:true ，此时设置 titCell 为导航元素包裹层
			mainCell : ".bd ul",
			effect : "left",
			autoPlay : true,//自动播放
			autoPage : true, //自动分页
		});
	</script>
</body>
</html>